package com.example.springbootdemo.scene.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 *@author xuwangqi
 *@date 2021/5/24 15:58
 **/
@ApiModel(value="com-example-springbootdemo-scene-entity-Menu")
@Data
@TableName(value = "menu")
public class Menu {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Integer id;

    /**
     * 菜单名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value="菜单名称")
    private String name;

    /**
     * 前端路由
     */
    @TableField(value = "front_route")
    @ApiModelProperty(value="前端路由")
    private String frontRoute;

    /**
     * 菜单图标
     */
    @TableField(value = "icon")
    @ApiModelProperty(value="菜单图标")
    private String icon;

    /**
     * 是否启用1启用，0关闭
     */
    @TableField(value = "status")
    @ApiModelProperty(value="是否启用1启用，0关闭")
    private Byte status;

    /**
     * 父菜单id
     */
    @TableField(value = "super_id")
    @ApiModelProperty(value="父菜单id")
    private Integer superId;

    /**
     * 菜单名称
     */
    @TableField(value = "title")
    @ApiModelProperty(value="菜单名称")
    private String title;

    /**
     * 菜单排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value="菜单排序")
    private Integer sort;

    /**
     * 菜单级数
     */
    @TableField(value = "level")
    @ApiModelProperty(value="菜单级数")
    private Integer level;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    /**
     * 是否启用1启用，0关闭
     */
    @TableField(value = "hidden")
    @ApiModelProperty(value="是否启用1启用，0关闭")
    private Byte hidden;

    /**
     * 父菜单id
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value="父菜单id")
    private Integer parentId;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_FRONT_ROUTE = "front_route";

    public static final String COL_ICON = "icon";

    public static final String COL_STATUS = "status";

    public static final String COL_SUPER_ID = "super_id";

    public static final String COL_TITLE = "title";

    public static final String COL_SORT = "sort";

    public static final String COL_LEVEL = "level";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_HIDDEN = "hidden";

    public static final String COL_PARENT_ID = "parent_id";
}